package org.tio.sitexxx.im.common.MsgModel;


import org.tio.sitexxx.im.common.bs.Base;
import org.tio.sitexxx.service.vo.SimpleUser;

import java.util.Date;

/**
 * Integer id
 *     Integer fromId
 *     Integer toId
 *     String fromType "consultant" or "member"
 *     String toType;
 *     String content;
 *     String type;消息类型
 */
public class KFP2PNty extends Base {

    private Integer fromId;
    private Integer toId;
    private long mid;
    private long time;
    private String content;
    private KFUser fromUser_offline;
    private SimpleUser fromUser = null;

    public KFP2PNty(){}

    public KFP2PNty(Integer fromId,Integer toId,long mid,String content,long time,SimpleUser fromUser){//在线消息用
        this.fromId = fromId;
        this.toId = toId;
        this.mid = mid;
        this.content = content;
        this.time = time;
        this.fromUser = fromUser;
    }
    public KFP2PNty(Integer fromId,Integer toId,long mid,String content,long time,KFUser fromUser){//离线消息用
        this.fromId = fromId;
        this.toId = toId;
        this.mid = mid;
        this.content = content;
        this.time = time;
        this.fromUser_offline = fromUser;
    }
    public Integer getFromId() {
        return fromId;
    }

    public void setFromId(Integer fromId) {
        this.fromId = fromId;
    }

    public Integer getToId() {
        return toId;
    }

    public void setToId(Integer toId) {
        this.toId = toId;
    }

    public long getMid() {
        return mid;
    }

    public void setMid(long mid) {
        this.mid = mid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

//    public KFUser getFromUser() {
//        return fromUser;
//    }
//
//    public void setFromUser(KFUser fromUser) {
//        this.fromUser = fromUser;
//    }

    public SimpleUser getFromUser() {
        return fromUser;
    }

    public void setFromUser(SimpleUser fromUser) {
        this.fromUser = fromUser;
    }

    public KFUser getFromUser_offline() {
        return fromUser_offline;
    }

    public void setFromUser_offline(KFUser fromUser_offline) {
        this.fromUser_offline = fromUser_offline;
    }
}
